import request from '@/utils/request'

// 获取权限数据列表
export const jurisdictionListApi = () => {
  return request.get('/sys/permission')
}

// 添加权限
export const addJurisdictionApi = (data) => {
  return request.post('/sys/permission', data)
}

// 删除接口
export const delJurisdictionApi = (id) => {
  return request.delete(`/sys/permission/${id}`)
}

// 权限详情
export const checkJurisdictionApi = (id) => {
  return request.get(`/sys/permission/${id}`)
}

// 修改权限
export const alterJurisdictionApi = (data) => {
  return request.put(`/sys/permission/${data.id}`, data)
}
